#include "workerthread.h"
#include <QDebug>

WorkerThread::WorkerThread()
{

}

void WorkerThread::run()
{
    qDebug() << "WorkerThread started:"
             << QThread::currentThreadId();
    int i = 0 ;

    char * buf = new char[20];

    if(nullptr != button){
        button->setText("OK2222");
    }

    while(i < 20){
        QThread::sleep(1);
        ++i;
    }
     qDebug() <<"WorkerThread end:"
              << QThread::currentThreadId();
     delete [] buf;
}
